package com.smooth.site.sx.pc.job.enums;

public enum JobStatus {
	init(1, "发布中"),
	published(2, "已发布"),
	offline(3, "已下架"),
	;

	public Integer value;
	public String name;

	JobStatus(int value, String name) {
		this.value = value;
		this.name = name;
	}

	public static JobStatus getStatus(Integer value) {
		if (value != null) {
			JobStatus[] otypes = JobStatus.values();
			for (JobStatus memberType : otypes) {
				if (value.equals(memberType.value)) {
					return memberType;
				}
			}
		}
		return null;
	}
}
